<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<div class="loader">
			<span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span>
		</div>
	</body>
	<style>
		body{
			margin: 0;
			padding: 0;
		}
		
		.loader{
			position: absolute;
			top: 50%;
			left: 50%;
			transform: translate(-50%,-50%)/* rotate(45deg) */;
			width: 150px;
			height: 150px;
			border: 10px solid #262626;
			/* animation: animateBg 2s linear infinite; */
			transform-origin:center;
		}
		@keyframes animateBg{
			0%{
				transform: rotate(0deg);
			}
			25%{
				transform: rotate(90deg);
			}
			50%{
				transform: rotate(180deg);
			}
			75%{
				transform: rotate(270deg);
			}
			100%{
				transform: rotate(360deg);
			}
		}
		
		span{
			width: 50px;
			height: 50px;
			background: #262626;
			display: flex;
			float: left;
			animation: animate 2s linear infinite;
		}
		span:nth-child(3){
			animation-delay: 0.8s;
		}
		span:nth-child(6),span:nth-child(2){
			animation-delay: 0.6s;
		}
		span:nth-child(1),span:nth-child(5),span:nth-child(9){
			animation-delay: 0.4s;
		}
		span:nth-child(4),span:nth-child(8){
			animation-delay: 0.2s;
		}
		span:nth-child(7){
			animation-delay: 0s;
		}
		@keyframes animate{
			0%{
				transform: scale(1);
			}
			30%{
				transform: scale(0);
			}
			50%{
				transform: scale(0);
			}
			75%{
				transform: scale(1);
			}
			100%{
				transform: scale(1);
			}
		}
	</style>
</html>